import 'package:favourcate/core/extension/int_fit_ext.dart';
import 'package:flutter/material.dart';

class GLOperationItem extends StatelessWidget {

  final Widget _icon;
  final String _title;
  final Color favorColor;

  const GLOperationItem(this._icon, this._title, { Key? key, this.favorColor = Colors.black }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(vertical: 12.px),
      child: Row(
        children: [
          _icon,
          SizedBox(width: 3.px,),
          Text(
            _title,
            style: Theme.of(context).textTheme.bodyText1!.copyWith(
              color: favorColor
            ),
          )
        ],
      ),
    );
  }
}